//---------------------------------------------------------------------------

#ifndef TControlStateStatisticH
#define TControlStateStatisticH
#include <vector.h>
//---------------------------------------------------------------------------
class TControlStateItem
{
public:
	int CutNumber;
	float Time;
	bool State;
	int CtrRetarderQuantity;
};

class TUnitTimeQuantity
{
public:
	float IntervalTime, EndTime;
	vector<float> Boost, CtrRetarder;
	TUnitTimeQuantity operator + (TUnitTimeQuantity t);
};


class TControlStateStatistic : public vector<TControlStateItem>
{
public:
	__fastcall TControlStateStatistic();
	float IntervalTime, EndTime;
	void __fastcall AddItem(const int CutNumber, const float Time, const bool CtrState,
									const int CtrRetarderQuantity);
	TUnitTimeQuantity __fastcall GetUnitTimeQuantity(const unsigned short Index, const float EndTime, const float UnitTime);
private:
	TUnitTimeQuantity Result;

};

#endif
